package com.mlnx.ui.service.impl;

import com.mlnx.service.base.service.BaseService;
import com.mlnx.ui.dao.AmbulatoryBpSettingMapper;
import com.mlnx.ui.entity.AmbulatoryBpSetting;
import com.mlnx.ui.service.AmbulatoryBpSettingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AmbulatoryBpSettingServiceImpl extends BaseService<AmbulatoryBpSettingMapper, AmbulatoryBpSetting> implements AmbulatoryBpSettingService {

    @Autowired
    @Override
    public void setBaseMapper(AmbulatoryBpSettingMapper baseMapper) {
        super.setBaseMapper(baseMapper);
    }

    @Override
    public void saveBpSetting(AmbulatoryBpSetting ambulatoryBpSetting) {
        baseMapper.updateInsert(ambulatoryBpSetting);
    }

    @Override
    public AmbulatoryBpSetting getBoundBpSetting(Integer patientId) {
        return baseMapper.selectBoundBpSetting(patientId);
    }
}
